3.9.73 \(\int (a+b x) (A+B x) (d+e x)^3 \, dx\)

Optimal. Leaf size=77 \[ -\frac {(d+e x)^5 (-a B e-A b e+2 b B d)}{5 e^3}+\frac {(d+e x)^4 (b d-a e) (B d-A e)}{4 e^3}+\frac {b B (d+e x)^6}{6 e^3} \]

________________________________________________________________________________________

Rubi [A]  time = 0.09, antiderivative size = 77, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {77} \begin {gather*} -\frac {(d+e x)^5 (-a B e-A b e+2 b B d)}{5 e^3}+\frac {(d+e x)^4 (b d-a e) (B d-A e)}{4 e^3}+\frac {b B (d+e x)^6}{6 e^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*x)*(A + B*x)*(d + e*x)^3,x]

[Out]

((b*d - a*e)*(B*d - A*e)*(d + e*x)^4)/(4*e^3) - ((2*b*B*d - A*b*e - a*B*e)*(d + e*x)^5)/(5*e^3) + (b*B*(d + e*
x)^6)/(6*e^3)

Rule 77

Int[((a_.) + (b_.)*(x_))*((c_) + (d_.)*(x_))^(n_.)*((e_.) + (f_.)*(x_))^(p_.), x_Symbol] :> Int[ExpandIntegran
d[(a + b*x)*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && NeQ[b*c - a*d, 0] && ((ILtQ[
n, 0] && ILtQ[p, 0]) || EqQ[p, 1] || (IGtQ[p, 0] && ( !IntegerQ[n] || LeQ[9*p + 5*(n + 2), 0] || GeQ[n + p + 1
, 0] || (GeQ[n + p + 2, 0] && RationalQ[a, b, c, d, e, f]))))

Rubi steps

\begin {align*} \int (a+b x) (A+B x) (d+e x)^3 \, dx &=\int \left (\frac {(-b d+a e) (-B d+A e) (d+e x)^3}{e^2}+\frac {(-2 b B d+A b e+a B e) (d+e x)^4}{e^2}+\frac {b B (d+e x)^5}{e^2}\right ) \, dx\\ &=\frac {(b d-a e) (B d-A e) (d+e x)^4}{4 e^3}-\frac {(2 b B d-A b e-a B e) (d+e x)^5}{5 e^3}+\frac {b B (d+e x)^6}{6 e^3}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 130, normalized size = 1.69 \begin {gather*} \frac {1}{2} d^2 x^2 (3 a A e+a B d+A b d)+\frac {1}{5} e^2 x^5 (a B e+A b e+3 b B d)+\frac {1}{4} e x^4 (a e (A e+3 B d)+3 b d (A e+B d))+\frac {1}{3} d x^3 (3 a e (A e+B d)+b d (3 A e+B d))+a A d^3 x+\frac {1}{6} b B e^3 x^6 \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*x)*(A + B*x)*(d + e*x)^3,x]

[Out]

a*A*d^3*x + (d^2*(A*b*d + a*B*d + 3*a*A*e)*x^2)/2 + (d*(3*a*e*(B*d + A*e) + b*d*(B*d + 3*A*e))*x^3)/3 + (e*(3*
b*d*(B*d + A*e) + a*e*(3*B*d + A*e))*x^4)/4 + (e^2*(3*b*B*d + A*b*e + a*B*e)*x^5)/5 + (b*B*e^3*x^6)/6

________________________________________________________________________________________

IntegrateAlgebraic [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int (a+b x) (A+B x) (d+e x)^3 \, dx \end {gather*}

Verification is not applicable to the result.

[In]

IntegrateAlgebraic[(a + b*x)*(A + B*x)*(d + e*x)^3,x]

[Out]

IntegrateAlgebraic[(a + b*x)*(A + B*x)*(d + e*x)^3, x]

________________________________________________________________________________________

fricas [B]  time = 1.04, size = 163, normalized size = 2.12 \begin {gather*} \frac {1}{6} x^{6} e^{3} b B + \frac {3}{5} x^{5} e^{2} d b B + \frac {1}{5} x^{5} e^{3} a B + \frac {1}{5} x^{5} e^{3} b A + \frac {3}{4} x^{4} e d^{2} b B + \frac {3}{4} x^{4} e^{2} d a B + \frac {3}{4} x^{4} e^{2} d b A + \frac {1}{4} x^{4} e^{3} a A + \frac {1}{3} x^{3} d^{3} b B + x^{3} e d^{2} a B + x^{3} e d^{2} b A + x^{3} e^{2} d a A + \frac {1}{2} x^{2} d^{3} a B + \frac {1}{2} x^{2} d^{3} b A + \frac {3}{2} x^{2} e d^{2} a A + x d^{3} a A \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(B*x+A)*(e*x+d)^3,x, algorithm="fricas")

[Out]

1/6*x^6*e^3*b*B + 3/5*x^5*e^2*d*b*B + 1/5*x^5*e^3*a*B + 1/5*x^5*e^3*b*A + 3/4*x^4*e*d^2*b*B + 3/4*x^4*e^2*d*a*
B + 3/4*x^4*e^2*d*b*A + 1/4*x^4*e^3*a*A + 1/3*x^3*d^3*b*B + x^3*e*d^2*a*B + x^3*e*d^2*b*A + x^3*e^2*d*a*A + 1/
2*x^2*d^3*a*B + 1/2*x^2*d^3*b*A + 3/2*x^2*e*d^2*a*A + x*d^3*a*A

________________________________________________________________________________________

giac [B]  time = 1.21, size = 159, normalized size = 2.06 \begin {gather*} \frac {1}{6} \, B b x^{6} e^{3} + \frac {3}{5} \, B b d x^{5} e^{2} + \frac {3}{4} \, B b d^{2} x^{4} e + \frac {1}{3} \, B b d^{3} x^{3} + \frac {1}{5} \, B a x^{5} e^{3} + \frac {1}{5} \, A b x^{5} e^{3} + \frac {3}{4} \, B a d x^{4} e^{2} + \frac {3}{4} \, A b d x^{4} e^{2} + B a d^{2} x^{3} e + A b d^{2} x^{3} e + \frac {1}{2} \, B a d^{3} x^{2} + \frac {1}{2} \, A b d^{3} x^{2} + \frac {1}{4} \, A a x^{4} e^{3} + A a d x^{3} e^{2} + \frac {3}{2} \, A a d^{2} x^{2} e + A a d^{3} x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(B*x+A)*(e*x+d)^3,x, algorithm="giac")

[Out]

1/6*B*b*x^6*e^3 + 3/5*B*b*d*x^5*e^2 + 3/4*B*b*d^2*x^4*e + 1/3*B*b*d^3*x^3 + 1/5*B*a*x^5*e^3 + 1/5*A*b*x^5*e^3
+ 3/4*B*a*d*x^4*e^2 + 3/4*A*b*d*x^4*e^2 + B*a*d^2*x^3*e + A*b*d^2*x^3*e + 1/2*B*a*d^3*x^2 + 1/2*A*b*d^3*x^2 +
1/4*A*a*x^4*e^3 + A*a*d*x^3*e^2 + 3/2*A*a*d^2*x^2*e + A*a*d^3*x

________________________________________________________________________________________

maple [A]  time = 0.00, size = 135, normalized size = 1.75 \begin {gather*} \frac {B b \,e^{3} x^{6}}{6}+A a \,d^{3} x +\frac {\left (3 B b d \,e^{2}+\left (A b +B a \right ) e^{3}\right ) x^{5}}{5}+\frac {\left (A a \,e^{3}+3 B b \,d^{2} e +3 \left (A b +B a \right ) d \,e^{2}\right ) x^{4}}{4}+\frac {\left (3 A a d \,e^{2}+B b \,d^{3}+3 \left (A b +B a \right ) d^{2} e \right ) x^{3}}{3}+\frac {\left (3 A a \,d^{2} e +\left (A b +B a \right ) d^{3}\right ) x^{2}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)*(B*x+A)*(e*x+d)^3,x)

[Out]

1/6*b*B*e^3*x^6+1/5*((A*b+B*a)*e^3+3*b*B*d*e^2)*x^5+1/4*(a*A*e^3+3*(A*b+B*a)*d*e^2+3*b*B*d^2*e)*x^4+1/3*(3*a*A
*d*e^2+3*(A*b+B*a)*d^2*e+b*B*d^3)*x^3+1/2*(3*a*A*d^2*e+(A*b+B*a)*d^3)*x^2+a*A*d^3*x

________________________________________________________________________________________

maxima [A]  time = 0.48, size = 134, normalized size = 1.74 \begin {gather*} \frac {1}{6} \, B b e^{3} x^{6} + A a d^{3} x + \frac {1}{5} \, {\left (3 \, B b d e^{2} + {\left (B a + A b\right )} e^{3}\right )} x^{5} + \frac {1}{4} \, {\left (3 \, B b d^{2} e + A a e^{3} + 3 \, {\left (B a + A b\right )} d e^{2}\right )} x^{4} + \frac {1}{3} \, {\left (B b d^{3} + 3 \, A a d e^{2} + 3 \, {\left (B a + A b\right )} d^{2} e\right )} x^{3} + \frac {1}{2} \, {\left (3 \, A a d^{2} e + {\left (B a + A b\right )} d^{3}\right )} x^{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(B*x+A)*(e*x+d)^3,x, algorithm="maxima")

[Out]

1/6*B*b*e^3*x^6 + A*a*d^3*x + 1/5*(3*B*b*d*e^2 + (B*a + A*b)*e^3)*x^5 + 1/4*(3*B*b*d^2*e + A*a*e^3 + 3*(B*a +
A*b)*d*e^2)*x^4 + 1/3*(B*b*d^3 + 3*A*a*d*e^2 + 3*(B*a + A*b)*d^2*e)*x^3 + 1/2*(3*A*a*d^2*e + (B*a + A*b)*d^3)*
x^2

________________________________________________________________________________________

mupad [B]  time = 1.07, size = 141, normalized size = 1.83 \begin {gather*} x^2\,\left (\frac {A\,b\,d^3}{2}+\frac {B\,a\,d^3}{2}+\frac {3\,A\,a\,d^2\,e}{2}\right )+x^5\,\left (\frac {A\,b\,e^3}{5}+\frac {B\,a\,e^3}{5}+\frac {3\,B\,b\,d\,e^2}{5}\right )+x^3\,\left (\frac {B\,b\,d^3}{3}+A\,a\,d\,e^2+A\,b\,d^2\,e+B\,a\,d^2\,e\right )+x^4\,\left (\frac {A\,a\,e^3}{4}+\frac {3\,A\,b\,d\,e^2}{4}+\frac {3\,B\,a\,d\,e^2}{4}+\frac {3\,B\,b\,d^2\,e}{4}\right )+A\,a\,d^3\,x+\frac {B\,b\,e^3\,x^6}{6} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A + B*x)*(a + b*x)*(d + e*x)^3,x)

[Out]

x^2*((A*b*d^3)/2 + (B*a*d^3)/2 + (3*A*a*d^2*e)/2) + x^5*((A*b*e^3)/5 + (B*a*e^3)/5 + (3*B*b*d*e^2)/5) + x^3*((
B*b*d^3)/3 + A*a*d*e^2 + A*b*d^2*e + B*a*d^2*e) + x^4*((A*a*e^3)/4 + (3*A*b*d*e^2)/4 + (3*B*a*d*e^2)/4 + (3*B*
b*d^2*e)/4) + A*a*d^3*x + (B*b*e^3*x^6)/6

________________________________________________________________________________________

sympy [B]  time = 0.09, size = 168, normalized size = 2.18 \begin {gather*} A a d^{3} x + \frac {B b e^{3} x^{6}}{6} + x^{5} \left (\frac {A b e^{3}}{5} + \frac {B a e^{3}}{5} + \frac {3 B b d e^{2}}{5}\right ) + x^{4} \left (\frac {A a e^{3}}{4} + \frac {3 A b d e^{2}}{4} + \frac {3 B a d e^{2}}{4} + \frac {3 B b d^{2} e}{4}\right ) + x^{3} \left (A a d e^{2} + A b d^{2} e + B a d^{2} e + \frac {B b d^{3}}{3}\right ) + x^{2} \left (\frac {3 A a d^{2} e}{2} + \frac {A b d^{3}}{2} + \frac {B a d^{3}}{2}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(B*x+A)*(e*x+d)**3,x)

[Out]

A*a*d**3*x + B*b*e**3*x**6/6 + x**5*(A*b*e**3/5 + B*a*e**3/5 + 3*B*b*d*e**2/5) + x**4*(A*a*e**3/4 + 3*A*b*d*e*
*2/4 + 3*B*a*d*e**2/4 + 3*B*b*d**2*e/4) + x**3*(A*a*d*e**2 + A*b*d**2*e + B*a*d**2*e + B*b*d**3/3) + x**2*(3*A
*a*d**2*e/2 + A*b*d**3/2 + B*a*d**3/2)

________________________________________________________________________________________